package com.haohuo.filter.model;

import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseCookie;
import org.springframework.util.MultiValueMap;

/**
 * @Author: pk.zhang
 * @Date: 2021/3/5 11:05
 */
public class TraceResponse {

    /** 请求ID **/
    String traceID;
    /** cookies **/
    MultiValueMap<String, ResponseCookie> cookies ;
    /** headers**/
    HttpHeaders headers ;
    /** 返回码 **/
    HttpStatus statusCode;

    /** startTime **/
    String startTime;
    /** 存储返回报文 **/
    private String respJson;

    public String getTraceID() {
        return traceID;
    }

    public void setTraceID(String traceID) {
        this.traceID = traceID;
    }

    public MultiValueMap<String, ResponseCookie> getCookies() {
        return cookies;
    }

    public void setCookies(MultiValueMap<String, ResponseCookie> cookies) {
        this.cookies = cookies;
    }

    public HttpHeaders getHeaders() {
        return headers;
    }

    public void setHeaders(HttpHeaders headers) {
        this.headers = headers;
    }

    public HttpStatus getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(HttpStatus statusCode) {
        this.statusCode = statusCode;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getRespJson() {
        return respJson;
    }

    public void setRespJson(String respJson) {
        this.respJson = respJson;
    }

    @Override
    public String toString() {
        return "TraceResponse{" +
                "traceID='" + traceID + '\'' +
                ", cookies=" + cookies +
                ", headers=" + headers +
                ", statusCode=" + statusCode +
                ", startTime='" + startTime + '\'' +
                ", respJson='" + respJson + '\'' +
                '}';
    }
}
